package com.xjust.service.impl;

import com.xjust.mapper.OneToOneMapper;
import com.xjust.service.OneToOneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class OneToOneServiceImpl implements OneToOneService {
    @Autowired
    private OneToOneMapper oneToOneMapper;
    //获取部门信息
    @Override
    public List<Map<String, Object>> getDeptment() {
        List<Map<String, Object>> list = oneToOneMapper.selectDeptment();
        return list;
    }
    //根据部门ID获取相应部门教师信息
    @Override
    public List<Map<String, Object>> getTeacherByDeptId(Integer deptId) {
        List<Map<String, Object>> list = oneToOneMapper.selectTeacherByDeptId(deptId);
        return list;
    }
}
